/**
 * 
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 *   
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 * 
 */
package org.jiopi.ibean.example.module.testmodule;

import org.jiopi.framework.annotation.module.Hotswap;
import org.jiopi.framework.annotation.module.InstanceType;
import org.jiopi.framework.annotation.module.Instantiation;
import org.jiopi.framework.annotation.module.RegisterModule;
import org.jiopi.framework.annotation.module.Reference;
import org.jiopi.ibean.example.blueprint.testblueprint.ClassControlPanel;
import org.jiopi.ibean.example.blueprint.testblueprint.NewInterfaceControlPanel;

/**
 * 
 * 同样继承了两个 控制面板
 * 
 * 为了防止与 InterfaceAndAbstractClassControlPanelImpl 冲突(该类实现了 NewInterfaceControlPanel 的父接口)
 * 系统无法将两个实现类与 控制面板绑定
 * 
 * 指定具体的绑定实现类
 * 
 * 该类为单例Bean,使用init方法
 * 
 * @version 0.1 2010.5.7
 * @since iBean0.2.0.0 2010.5.7
 *
 */
@Hotswap(resetMethod="reset")
@Instantiation(type=InstanceType.SINGLETON,initMethod="init")
@RegisterModule({
	"org.jiopi.ibean.example.blueprint.testblueprint.ClassControlPanel",
	"org.jiopi.ibean.example.blueprint.testblueprint.NewInterfaceControlPanel"
	})
public class NewInterfaceAndClassControlPanelImpl extends ClassControlPanel implements NewInterfaceControlPanel {
	
	private boolean inited = false;
	
	public static String redefineClassStaticString = "redefineClassStaticString";
	
	public void init(){
		inited = true;
	}
	
	public String newInterfaceMethod() {
		return "newInterfaceMethod in NewInterfaceAndClassControlPanelImpl"+inited;
	}

	public String interfaceMethod() {
		return "interfaceMethod in NewInterfaceAndClassControlPanelImpl"+inited;
	}
	
	public String classMethod(){
		return "classMethod in NewInterfaceAndClassControlPanelImpl"+inited;
	}
	
	public static String staticClassMethod(String socket){
		return "staticClassMethod in NewInterfaceAndClassControlPanelImpl";
	}
	
	public void referenceAnnotationTest(int a,float[] b,@Reference ClassControlPanel reference,NewInterfaceControlPanel value,NewInterfaceControlPanel[] value2){
		
	}
	

}
